/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

/**
 *
 * @author phamvanvung
 */
public class Node {
    public Book info;
    public Reader reader;
    public Lending lending;
    public Node next;
    public Node prev;

    public Node(Book info, Node next, Node prev) {
        this.info = info;
        this.next = next;
        this.prev = prev;
    }
     public Node(Reader reader, Node next, Node prev) {
        this.reader = reader;
        this.next = next;
        this.prev = prev;
    }
      public Node(Lending lending, Node next, Node prev) {
        this.lending = lending;
        this.next = next;
        this.prev = prev;
    }
    public Node(Book info) {
        this(info, null,null);
    }
     public Node(Reader reader) {
        this(reader, null,null);
    } 
     public Node(Lending lending) {
        this(lending, null,null);
    }
    
     
    
}
